//import com.sun.xml.internal.ws.api.model.wsdl.WSDLOutput;

public class Random {
    public static void main(String[] args) {
        java.util.Random r = new java.util.Random();
        //用循环获取10个随机数
        for(int i = 0; i <10 ; i++) {
            //获取随机数
            int number = r.nextInt(10);
            System.out.println("number:" + number);
        }
        //获取1-100之间的随机数
        int x = r.nextInt(100)+1;
        System.out.println(x);
    }


}
